<%--
  Function: for JSP scriptlet demo
  User: PING
  Date: 2022/9/8

--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <%!
        class Student {

        }

        public  int doSum(int a, int b) {
            return a +b ;
        }

    %>
</head>
<body>
    <table border="1" >
    <%
        //这里是 scriptlet, java code
        for (int i=0; i<6; i++) {

            %>
            <!-- print current row -->
            <tr>
        <%
            for (int j=0; j<6; j++) {
        %>
                <td><%=(i>=j?((i+1)+"*" + (j+1)+"="+(i+1)*(j+1)):"")%></td><%
            }
            %>
            </tr>
        <%
        }
       %>
    </table>

</body>
</html>
